import React from 'react'



import  {   Route, Switch ,Redirect } from 'react-router-dom'

// import './App.css';


import  Login from './pages/login/login'

import  Admin from './pages/admin/admin'


import { Button } from 'antd';





export default class App extends React.Component {
  render() {
    return (
      <div className="app">


<Switch>
<Route  path='/login' component={Login}></Route>
<Route  path='/admin' component={Admin}></Route>
<Redirect to ='/admin' />
  
</Switch>
     

      
      </div>
    )
  }
}